;----------------------
; Wise Man's Quiz
;
SCENE 26, hotel, CUT, "Quiz Realm" 0,0
	THEME 0
	MUSIC #nochange
	ACTOR 1,	"Wise Man's Spirit", wiseman2, 1,50,70
	SEL 1
	@music
	LOCK 1
	IF R25, @music1
	IF R33, @music2
	IF R50, @music3
	GOTO @music4
END

@music1
	MUSIC predance.mid
	GOTO @startofscene
	END
	@music2
	MUSIC multiscene1.mid
	GOTO @startofscene
	END
	@music3
	MUSIC multiscene2.mid
	GOTO @startofscene
	END
	@music4
	MUSIC wiseman2.mid
	GOTO @startofscene
END

@startofscene
	SET loser1, "Can't you get anything right?"
	SET loser2, "Ohh! And it was so close!"
	SET loser3, "Sorry, but try again soon."
	SET loser4, "Get out there and learn something!"
	SET loser5, "Will you ever get it right?"
	IF T610, @askrnd
	' You know me... in body, do you not?
	' You have just entered my head, where I can show you much knowledge...
	' But, before I do that, you must prove that you have at least some knowledge, yourself...
	' To prove yourself, you must complete quizzes.
	' You will be rewarded greatly for completing these!
	' So far, I plan several types of rounds.
	' They would be visual rounds, verbal rounds, and name-that-tune rounds. (I just added a VG round, though...)
	' Right now, there are two rounds.
	' I think I'm going to have it so that you can chose whatever quiz you want from a list.
	' I will ask that you give me something that we refer to in the mortal world as gold.
	' If you mess up, you must pay again and start over.
	' There are 3 difficulties with 10 questions each.
	' You will have 10-60 seconds to answer each.
	' Now, where would you like to begin?
	WAIT 1.75
	N: Note From Simmen: I will add more quizes
	N: every now and then; start with these!
	GIVE T610
@askrnd
	LOCK 1
	COMPARE #<num.peopleInScene>, "1"
	IF>,@MOB
	' Would you like to take a quiz in the (1) video game section or the (2) verbal section?
	ASK 9999
	IF Q1, @vg
	IF Q2, @rnd1cs
	GOTO @askrnd
END

@mob
	' No cheating! One person at a time!
END

@vg
	' Time for some video game questions!
	' I have two quizes right now.
	' Do you want to take a quiz on (1) Master of Reality (1000G) or on (2) FFX (2500G)?
	ASK 99999
	IF Q1, @pgvg
	IF Q2, @ffxvg
	' Say 1 or 2.
	GOTO @vg
END

@eventactorclick1
	' Welcome, young one!
	SOUND wise1.wav
END

@rnd1cs
	' You are in round one of verbal.
	' So, will it be easy (G500), normal (G1000), or hard (G3000)?
	GOTO @askrnd1
END

@askrnd1
	N: Say either EASY, NORMAL, or HARD.
	ASK 40
	IF Qeasy, @easyrnd1
	IF Qnormal, @normalrnd1
	IF Qhard, @hardrnd1
	GOTO @askrnd1
END

@donernd1
	' This quiz is over.
	' Please choose another one.
	GOTO @askrnd1
END

@normalrnd1
	1: Sorry, normal isn't ready yet.
	1: Would you like to take one of these quizzes?
	GOTO @askrnd
END
	IF T612, @alreadydone
	IF -G999, @notenough
	TAKE G1000
	' Here we go on Round One - Normal!
	' This quiz consists of ten questions.
	' I will be using the countdown system for your timer.
	COUNTDOWN 1
	' Are you ready? Great!
	' We start...
	' NOW!
	1: What is 25X5?
	COUNTDOWN 11
	ASK 11
	IF XP, @outoftime
	IF Q125, @normalrnd1quest2
	GOTO @wrong
	END
	@normalrnd1quest2
	' Correct! Now, what ocean is to the west of North America?
	COUNTDOWN 16
	ASK 16
	IF XP, @outoftime
	IF Qpacific, @normalrnd1quest3
	GOTO @wrong
	END
	@normalrnd1quest3
	1: Very good! Now, what is the squre root of 25?
	ASK 11
	COUNTDOWN 11
	IF Q5, @normalrnd1quest4
	IF Qfive, @normalrnd1quest4
	GOTO @wrong
	@normalrnd1quest4
	1: Yeah. So, what is 5 times 12?
	ASK 16
	COUNTDOWN 16
	IF Q60, @normalrnd1quest5
	IF qsixty, @normalrnd1quest5
	GOTO @wrong
	@normalrnd1quest5
	
	


@hardrnd1
	' Sorry, HARD isn't ready right now.
	' Please choose EASY for now if you havn't already done so.
	GOTO @askrnd
END	

@easyrnd1
	IF T611, @alreadydone
	IF -G499, @notenough
	TAKE G500
	' Alright, welcome to Round One - Easy!
	' I will now ask ten questions.
	' I will be using the countdown system for your timer.
	COUNTDOWN 1
	' Are you ready? Good!
	' We start...
	' NOW!
	' What is 2+2?
	COUNTDOWN 11
	ASK 11
	IF XP, @outoftime
	IF Q4, @easyrnd1quest2
	GOTO @wrong
	END
	@easyrnd1quest2
	COUNTDOWN 0
	SOUND clap.wav
	' Right! Now, what is the name of the country that is also a continent?
	COUNTDOWN 21
	ASK 21
	IF XP, @outoftime
	IF australia, @easyrnd1quest3
	GOTO @wrong
	END
	@easyrnd1quest3
	SOUND clap.wav
	COUNTDOWN 0
	' Right! Complete this; "What goes up, must come ____?"
	COUNTDOWN 11
	ASK 11
	IF XP, @outoftime
	IF Qdown, @easyrnd1quest4
	GOTO @wrong
	END
	@easyrnd1quest4
	SOUND clap.wav
	COUNTDOWN 0
	' Right! What basic color is the sky?
	COUNTDOWN 16
	ASK 16
	IF XP, @wrong
	IF Qclear, @easyrnd1quest5
	IF Qwhite, @easyrnd1quest5
	IF Qblue, @easyrnd1quest5
	GOTO @wrong
	END
	@easyrnd1quest5
	SOUND clap.wav
	COUNTDOWN 0
	'  Right! Abbreviate: United States of America
	COUNTDOWN 11
	ASK 11
	IF XP, @outoftime
	IF Qusa, @easyrnd1quest6
	GOTO @wrong
	END
	@easyrnd1quest6
	SOUND clap.wav
	COUNTDOWN 0
	' Right! What do you use to call people?
	COUNTDOWN 16
	ASK 16
	IF XP, @outoftime
	IF Qtelephone, @easyrnd1quest7
	IF Qphone, @easyrnd1quest7
	GOTO @wrong
	END
	@easyrnd1quest7
	SOUND clap.wav
	COUNTDOWN 0
	' Right! What is the slowest type of internet connection (14.4k, 56.6k)? HINT: _____band.
	COUNTDOWN 16
	ASK 16
	IF XP, @outoftime
	IF Qnarrow, @easyrnd1quest8
	GOTO @wrong
	END
	@easyrnd1quest8
	SOUND clap.wav
	COUNTDOWN 0
	' Right! Abbreviate: Well of Souls
	COUNTDOWN 11
	ASK 11
	IF XP, @outoftime
	IF Qwos, @easyrnd1quest9
	GOTO @wrong
	END
	@easyrnd1quest9
	SOUND clap.wav
	COUNTDOWN 0
	' Right! What holiday is on December 25?
	COUNTDOWN 16
	ASK 16
	IF XP, @outoftime
	IF Qchristmas, @easyrnd1quest10
	GOTO @wrong
	END
	@easyrnd1quest10
	SOUND clap.wav
	COUNTDOWN 0
	' Right! Now for the super-hard question...
	' What color is the White House?
	COUNTDOWN 11
	ASK 11
	IF XP, @outoftime
	IF Qwhite, @easyrnd1end
	GOTO @wrong
	END
	@easyrnd1end
	COUNTDOWN 0
	SOUND clap.wav
	' Right! You win!
	GOTO @wineasyrnd1
END

@wineasyrnd1
	' Here's your prize!
	GIVE T611
	GIVE I526
	' Do you want to play another quiz? (YES/NO)
	ASK 99999
	IF YES, @askrnd
	' Ok, come back soon, then!
	LOCK 0
END

@ffxvg
	IF T612, @alreadydone
	IF -G2499, @notenough
	TAKE G2500
	MUSIC quiz1.mid
	' So, you think you know about Final Fantasy X?
	' We'll see about that!
	' I will now ask ten questions.
	' I'll be using the countdown system for your timer.
	COUNTDOWN 1
	' Are you ready? Ok, here we go!
	' We start...
	' NOW!
	' What is the name of the main character?
	COUNTDOWN 11
	ASK 11
	IF XP, @outoftime
	IF Qtidus, @ffxvgquest2
	GOTO @wrong
	END
	@ffxvgquest2
	SOUND clap.wav
	' Good! Now, what is the name of the thing Yuna summons?
	COUNTDOWN 11
	ASK 11
	IF XP, @outoftime
	IF Qaeon, @ffxvgquest3
	GOTO @wrong
	END
	@ffxvgquest3
	SOUND clap.wav
	' Right on! What is the name of one who is dead but walks the planet?
	COUNTDOWN 16
	ASK 16
	IF XP, @outoftime
	IF Qauron, @ffxvgquest4
	IF Qjyscal, @ffxvgquest4
	IF Qunsent, @ffxvgquest4
	GOTO @wrong
	END
	@ffxvgquest4
	SOUND clap.wav
	' Correct! What was the name of Yuna's father? (Just his name, no prefix)
	COUNTDOWN 16
	ASK 16
	IF XP, @outoftime
	IF Qbraska, @ffxvgquest5
	GOTO @wrong
	END
	@ffxvgquest5
	SOUND clap.wav
	' Yep! What is the relation between Yuna and Rikku (how are they related)? They are ____.
	COUNTDOWN 21
	ASK 21
	IF XP, @outoftime
	IF Qcousin, @ffxvgquest6
	GOTO @wrong
	END
	@ffxvgquest6
	SOUND clap.wav
	' Yes! You can tell if someone is an al bhed if they have swirls in their ____.
	COUNTDOWN 11
	ASK 11
	IF XP, @outoftime
	IF Qeye, @ffxvgquest7
	GOTO @wrong
	END
	@ffxvgquest7
	SOUND clap.wav
	' Right! All of Auron's weapons have the ____ ability.
	COUNTDOWN 21
	ASK 21
	IF XP, @outoftime
	IF Qpiercing, @ffxvgquest8
	IF Qpierce, @ffxvgquest8
	GOTO @wrong
	END
	@ffxvgquest8
	SOUND clap.wav
	' Yes! What name do the Al Bhed call the place where they live(d)?
	COUNTDOWN 11
	ASK 11
	IF XP, @outoftime
	IF Qhome, @ffxvgquest9
	GOTO @wrong
	END
	@ffxvgquest9
	SOUND clap.wav
	' Yep! Complete this: Yuna is to Cid as ____ is to Braska.
	COUNTDOWN 16
	ASK 16
	IF XP, @outoftime
	IF Qrikku, @ffxvgquest10
	GOTO @wrong
	END
	@ffxvgquest10
	SOUND clap.wav
	COUNTDOWN 0
	' Correct! One last question...
	' Who said "Death is the ultimate and final liberation."?
	COUNTDOWN 31
	ASK 31
	IF XP, @outoftime
	IF Qseymour, @ffxvgend
	GOTO @wrong
	END
	@ffxvgend
	COUNTDOWN 0
	SOUND clap.wav
	' YES!!! You got that one? Wow!
	GOTO @winvgffx
END

@winvgffx
	' Great! Here's your prize!
	GIVE T612
	GIVE I525
	H: It's a hat..
	' Yes, but I'm sure you can find someone who would like it!
	' Want to take any more quizes right now? (YES/NO)
	ASK 99999
	IF YES, @askrnd
	' Ok, come back if you want to play any more quizes!
END

@pgvg
	IF T613, @alreadydone
	IF -G999, @notenough
	TAKE G1000
	1: Think you know all about Master of Reality? Ha, we'll see!
	1: This quiz takes all of the stuff YOU people take for granted and puts it against you!
	1: Win and get an awsome prize!
	1: I will be using the coutdown system for your timer.
	COUNTDOWN 1
	1: Here we go!
	1: How many towns were there on the island of Pillow Gauntlet before the attack?
	COUNTDOWN 16
	ASK 16
	IF XP, @outoftime
	IF Q3, @pgvgquest2
	IF Qthree, @pgvgquest2
	GOTO @wrong
	END
	@pgvgquest2
	1: Yup. What does the boat you ride on have on the sail?
	COUNTDOWN 16
	ASK 16
	IF XP, @outoftime
	IF Qarg, @pgvgquest3
	GOTO @wrong
	END
	@pgvgquest3
	1: Yeah. What basic color is the Alpha Clone's hat?
	COUNTDOWN 16
	ASK 16
	IF XP, @outoftime
	IF Qblue, @pgvgquest4
	GOTO @wrong
	END
	@pgvgquest4
	1: Quite right. But how many islands does Euhoria have?
	COUNTDOWN 16
	ASK 16
	IF XP, @outoftime
	IF Q4, @pgvgquest5
	GOTO @wrong
	END
	@pgvgquest5
	1: Correct. What color robe does King Axl wear?
	COUNTDOWN 16
	ASK 16
	IF XP, @outoftime
	IF Qblue, @pgvgquest6
	GOTO @wrong
	END
	@pgvgquest6
	1: Ok, now what color is King Joe's robe?
	COUNTDOWN 16
	ASK 16
	IF XP, @outoftime
	IF Qred, @pgvgquest7
	GOTO @wrong
	END
	@pgvgquest7
	1: Yeah. What's the name of the mountain in the southwest corner of Master of Reality?
	COUNTDOWN 16
	ASK 16
	IF XP, @outoftime
	IF Qgabonasia, @pgvgquest8
	GOTO @wrong
	END
	@pgvgquest8
	1: Right. What about the name of the person who runs the treasure chest game?
	COUNTDOWN 16
	ASK 16
	IF XP, @outoftime
	IF Qeuclid, @pgvgquest9
	GOTO @wrong
	END
	@pgvgquest9
	1: Yeah. What's the second choice for the vending machine?
	COUNTDOWN 16
	ASK 16
	IF XP, @outoftime
	IF Qpepsi, @pgvgquest10
	GOTO @wrong
	END
	@pgvgquest10
	COUNTDOWN 0
	1: Last one. What is the mayor's dog's name?
	COUNTDOWN 16
	ASK 16
	IF XP, @outoftime
	IF Qruffles, @pgvgquest11
	GOTO @wrong
	END
	@pgvgquest11
	1: YOU WIN!
	1: You must have studied hard!
	1: Well, that studying has paid off for you, you get a Wise Blade and a small tea of wisdom!
	WAIT 1.5
	N: *Aquired Wise Blade and small tea of wisdom!*
	GIVE I526
	GIVE I527
	GIVE T613
	H: Wow, awsome!
	1: Yep.
	GOTO @startofscene
END


@wrong
	COUNTDOWN 0
	SET randomNumber, "loser%R5"
	SET discrace, *#<randomNumber>
	' Wrong! #<discrace>
	GOTO @askrnd
END

@outoftime
	1: Looks like you took too long to answer that question!
	1: Would you like to try another quiz?
	GOTO @askrnd
END

@notenough
	' Sorry, you don't have enough money.
	' Maybe you have enough for a different round?
	GOTO @askrnd
END

@alreadydone
	' This round's over.
	' Pick another, ok?
	GOTO @askrnd
END